package com.moyun.common.exception;

/**
 * <h3>learning_route</h3>
 * <p>自定义异常基类</p>
 *
 * @author : ybx
 * @date : 2021-03-08 12:14:27
 **/
public class BaseException extends RuntimeException {
    private Integer code;

    public BaseException() {
    }

    public BaseException(String message) {
        super(message);
    }

    public BaseException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
